package com.mlk.good.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mlk.core.constants.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.security.DenyAll;
import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * @author trekxu
 * @since 2019-06-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngGoodOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 订单的编号
     */
    private String orderCode;

    /**
     * 商品的id
     */
    private String goodId;

    /**
     * 商品的名称
     */
    private String goodName;
    /**
     * 商品的名称
     */
    private String branch;

    /**
     * 参数规格的id
     */
    private Integer paramId;
    /**
     * 参数名称
     */
    private String paramName;

    /**
     * 商品的单价
     */
    private BigDecimal singlePrice;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 花费的积分
     */
    private Integer costScore;
    /**
     * 积分抵现的比例
     */
    private BigDecimal rate;
    /**
     * 运费
     */
    private BigDecimal sendPrice;
    /**
     * 总价
     */
    private BigDecimal totalPrice;
    private String openId;
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;
    /**
     * 状态
     */
    private Integer status;

    /**
     * 送货地址
     */
    private String address;
    private String keyword;
}
